<template>
  <div>
    <label>input:</label>
    <!--    示意一下 $event 的用法-->
    <el-input :value="value" @input="handleInput($event, 'ba')"/>
  </div>
</template>

<script>
export default {
  name: 'inputComponent',
  props: {
    value: {
      type: [String, Number],
      default: ''
    }
  },
  computed: {
  },
  data () {
    return {}
  },
  methods: {
    handleInput (v, payload) {
      // console.log(arguments)
      this.$emit('input', v)
    }
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
</style>
